package com.czhlearn.service;

import com.czhlearn.pojo.User;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @program: big-event
 * @description:
 * @author: czh
 * @create: 2023-12-15 16:52
 **/

public interface UserService {


    //根据用户名查询用户
    User findByUserName(String username);

    //注册
    void register(String username, String password);

    //更新
    void update(User user);

    //更新头像
    void updateAvatar(String avatarUrl);

    //更新密码
    void updatePwd(String newPwd);
}
